package com.libgdxbar.pvzlikegame.objects;

import com.badlogic.gdx.InputAdapter;
import com.badlogic.gdx.InputProcessor;
import com.libgdxbar.pvzlikegame.entities.ClickableEntity;

// 演示基础地面类 (地面也是游戏实体，没想到吧)
//TODO 给你架空了这个类
public class SampleGround extends ClickableEntity {
	@Override
	protected InputProcessor setInputListener() {
		InputProcessor processor = new InputAdapter() {
		};
		return processor;
	}

	public SampleGround(int width, int height) {
		super(0, 0, width, height);
	}

	@Override
	public void run(float delta) {
	}

	@Override
	public boolean onClick(int x, int y) {
//		// 演示逻辑: 点击在对应位置添加对象
//		SampleShapeZombie zombie = new SampleShapeZombie(x - 25, 480 - y - 1 - 25);
//		zombies.add(zombie);
//		zombie.setCollisionEntities(zombies);
		return false;
	}
}
